package cn.scy.business.controller.xiamdx;

import cn.scy.base.PageResult;
import cn.scy.base.ResponseDTO;
import cn.scy.business.domain.param.xiamdx.XiamdxReportInfoParam;
import cn.scy.business.domain.vo.xiamdx.XiamdxReportInfoVO;
import cn.scy.business.service.xiamdx.XiamdxReportInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 厦门电信
 * 报备管理-报备信息表 前端控制器
 *
 * @author scy
 * @since 2025-04-26
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/xiamdx/report")
public class XiamdxNumReportInfoController {

    private final XiamdxReportInfoService reportInfoService;

    @PostMapping("listPage")
    public ResponseDTO<PageResult<XiamdxReportInfoVO>> listPage(@RequestBody XiamdxReportInfoParam param) {
        return ResponseDTO.ok(reportInfoService.listPage(param));
    }

    @PostMapping("delete")
    public ResponseDTO<Boolean> deleteReport(@RequestParam("id") String id) {
        return ResponseDTO.ok(reportInfoService.deleteReport(id));
    }

}
